package com.example.pojo.easyexcel.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.example.convert.easyexcel.LocalDateTimeConvert;
import com.example.convert.easyexcel.StatusConvert;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/9/27 17:35
 */
@Data
@AllArgsConstructor
@ToString
@NoArgsConstructor
@Builder
public class CustomerConvertData implements Serializable {
    @ExcelProperty("id")
    private Integer id;
    @ExcelProperty("name")
    private String name;
    @ExcelProperty(value = "createTime",converter =  LocalDateTimeConvert.class)
    private LocalDateTime createTime;
    @ExcelProperty(value = "status",converter = StatusConvert.class)
    private Integer status;

}
